# name : proc phreg: Cox PH Reg
# key : phreg.
# key : cox.phreg.
# contributor: Shuguang Sun
# --
* The TRT should be classed, otherwise, it will treated as numeric;
* ODS SELECT ModelInfo CensoredSummary GlobalTests ParameterEstimates SurvivalPlot;
ods output HazardRatios=${6:mod}_shr;
ods output ContrastEstimate=$6_sce;
proc phreg data = ${1:dtin} plots(overlay = group) = (survival);
class ${2:trt01p}$0 (ref = "");
model ${3:aval} * ${4:cnsr} (1) = $2 /rl ties = efron;
strata ${5:strata};
hazardratio $2/e diff=ref alpha=0.05 cl=wald;
contrast "trt-ctr" $2 1 /estimate=exp e alpha=0.05;
run;
